package com.xiaxiang.xiawan.dialog;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;

import com.donggua.aichebao.commonui.Dialog.DGPopupwindow;
import com.xiaxiang.xiawan.R;

/**
 * Created by Administrator on 2017-11-16.
 */

public class XXDeleteDlg extends DGPopupwindow implements View.OnClickListener{
    public XXDeleteDlg(Activity activity) {
        super(activity);
    }

    @Override
    protected View getView() {
        View view = LayoutInflater.from(mActivity).inflate(R.layout.dlg_delete_layout,null);
        Button deleteBtn = (Button)view.findViewById(R.id.btnDelete);
        Button cancelBtn = (Button)view.findViewById(R.id.btnCancel);
        deleteBtn.setOnClickListener(this);
        cancelBtn.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        doOnClick(view);
    }

    public void doOnClick(View view){
        close();
    }
}
